
package com.jf.cloud.common.order.vo;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 店铺运费信息
 * @author zz
 * @date 2020/12/16
 */
public class ShopTransFeeVO {

    @Schema(description = "免运费金额" , required = true)
    private Long freeTransfee;

    @Schema(description = "运费" , required = true)
    private Long transfee;

    @Schema(description = "运费模板id" , required = true)
    private Long deliveryTemplateId;

    @Schema(description = "供应商id" , required = true)
    private Long supplierId;

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getFreeTransfee() {
        return freeTransfee;
    }

    public void setFreeTransfee(Long freeTransfee) {
        this.freeTransfee = freeTransfee;
    }

    public Long getTransfee() {
        return transfee;
    }

    public void setTransfee(Long transfee) {
        this.transfee = transfee;
    }

    public Long getDeliveryTemplateId() {
        return deliveryTemplateId;
    }

    public void setDeliveryTemplateId(Long deliveryTemplateId) {
        this.deliveryTemplateId = deliveryTemplateId;
    }

    @Override
    public String toString() {
        return "ShopTransFeeVO{" +
                "freeTransfee=" + freeTransfee +
                ", transfee=" + transfee +
                ", deliveryTemplateId=" + deliveryTemplateId +
                '}';
    }

    /**
     * 店铺运费模板运费 （订单中使用同一个运费模板商品所需的运费）
     */
    public static class DeliveryTemplateTransFee{

        /**
         *  免运费金额
         */
        private Long freeTransfee;

        /**
         *  运费
         */
        private Long transfee;

        public Long getFreeTransfee() {
            return freeTransfee;
        }

        public void setFreeTransfee(Long freeTransfee) {
            this.freeTransfee = freeTransfee;
        }

        public Long getTransfee() {
            return transfee;
        }

        public void setTransfee(Long transfee) {
            this.transfee = transfee;
        }
    }
}
